/*
 * Copyright 2017 Baiyyy
 * @(#)Cjsb.java
 */

package com.byyy.ccts.modules.cc.entity.ccts;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.byyy.ccts.core.common.entity.DataEntity;
import com.byyy.ccts.core.security.shiro.authz.annotation.DataPermission;

import java.sql.Timestamp;

/**
 * 设备操作指令表
 * Created by DELL on 2018-4-28.
 */
@TableName("T_S_DEVICEOPT_CMD")
public class TSDeviceOptCmd extends DataEntity<String> {

    /** 字段主键 */
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @TableField("DEVICE_ID")
    private String deviceId;

    @TableField("DEVICE_SN")
    private String deviceSn;

    @TableField("CMD")
    private String cmd;

    @TableField("PRE_ID")
    private String preId;

    @TableField("PRE_CMD")
    private String preCmd;

    @TableField("PARAM")
    private String param;

    @TableField("SEQUENCENUM")
    private String sequenceNum;

    @TableField("EXEC_STATE")
    private String execState;

    @TableField("EXEC_TIME")
    private Timestamp execTime;

    /** 仓库 */
    @DataPermission
    @TableField(exist = false)
    private String cangku;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getPreId() {
        return preId;
    }

    public void setPreId(String preId) {
        this.preId = preId;
    }

    public String getPreCmd() {
        return preCmd;
    }

    public void setPreCmd(String preCmd) {
        this.preCmd = preCmd;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getSequenceNum() {
        return sequenceNum;
    }

    public void setSequenceNum(String sequenceNum) {
        this.sequenceNum = sequenceNum;
    }

    public String getExecState() {
        return execState;
    }

    public void setExecState(String execState) {
        this.execState = execState;
    }

    public Timestamp getExecTime() {
        return execTime;
    }

    public void setExecTime(Timestamp execTime) {
        this.execTime = execTime;
    }

    public String getCangku() {
        return cangku;
    }

    public void setCangku(String cangku) {
        this.cangku = cangku;
    }

    @Override
    public String getId() {
        return this.id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }
}
